package com.tina.entity;

import lombok.Data;

import java.util.Map;

/**
 * @author Tina
 * @version 1.0
 * @since 2021/10/29 17:18
 **/
@Data
public class GraphDataPojo {
    private Integer category;
    private String name;
    private String value ;
//    private String label ;

    public GraphDataPojo(Map<String, Object> temp, Map<String, String> map, int i) {

    }
    public GraphDataPojo(String value, int count, String type) {
        if("up".equals(type)){
            this.category = 1;
        }else if("down".equals(type)){
            this.category = 2;
        }else{
            this.category = 0;
        }
        this.name = type+count;
        this.value = value;
    }
}